import request from '@/utils/request'

// 查询国籍列表
export function listTbnationality(query) {
  return request({
    url: '/apartment/tbnationality/list',
    method: 'get',
    params: query
  })
}

// 查询国籍详细
export function getTbnationality(id) {
  return request({
    url: '/apartment/tbnationality/' + id,
    method: 'get'
  })
}

// 新增国籍
export function addTbnationality(data) {
  return request({
    url: '/apartment/tbnationality',
    method: 'post',
    data: data
  })
}

// 修改国籍
export function updateTbnationality(data) {
  return request({
    url: '/apartment/tbnationality',
    method: 'put',
    data: data
  })
}

// 删除国籍
export function delTbnationality(id) {
  return request({
    url: '/apartment/tbnationality/' + id,
    method: 'delete'
  })
}
